package B.w.OOday02;



public class Extends {
    public static void main(String[] args) {
        Student zs=new Student("张三",1,"垃圾桶","JSD2302","001");
        zs.name="张三";
        zs.age=1;
        zs.address="垃圾桶";
        zs.className="JSD2302";
        zs.stuID="001";
        zs.eat();
        zs.sleep();
        zs.sayHi();
        zs.study();

        Doctor ls=new Doctor("李四",2,"垃圾收费站","0");
        ls.name="李四";
        ls.age=2;
        ls.address="垃圾收费站";
        ls.title="0";

        ls.eat();
        ls.sleep();
        ls.sayHi();
        ls.cut();

        Teacher ww=new Teacher("王五",3,"化粪池",100.0);
        ww.name="王五";
        ww.age=3;
        ww.address="化粪池";
        ww.salary=3.96;
        ww.eat();
        ww.sleep();
        ww.sayHi();
        ww.teach();
    }
}
